package com.techstar.api.pojo.expressway;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.IdClass;
import javax.persistence.Table;

import org.joda.time.DateTime;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.techstar.api.pojo.complex_id.FreewayCongestSectionId;
import com.techstar.common.jackson.DateTimeDeserializer;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * 
 * @author EinIce
 * @description 高速拥堵路段
 * @date 2021年6月25日
 *
 */
@Getter
@Setter
@Entity
@ToString
@Table(name = "freeway_congest_section")
@IdClass(FreewayCongestSectionId.class)
@org.hibernate.annotations.Table(appliesTo = "freeway_congest_section",comment="pord-4-高速拥堵路段")
public class FreewayCongestSection {
	@Id
	private String congestId;
	@Id
	private String highwayId;
	private String highwayName;
	private String congestSectionName;
	private String congestDirection;
	private String congestStatus;
	private String congestIndex;
	private String congestSpeed;
	private String congestKeeptime;
	private String congestStartTime;
	private String congestEndTime;
	private String congestDistance;
	private String congestStartDesc;
	private String congestEndDesc;
	private String congestLoc;
	private String eventId;
	private String relationId;
	@Column(columnDefinition="text COMMENT '拥堵点位信息1'")
	private String linkGps1;
	@Column(columnDefinition="text COMMENT '拥堵点位信息2'")
	private String linkGps2;
	@Column(columnDefinition="text COMMENT '拥堵点位信息3'")
	private String linkGps3;
	@Column(columnDefinition="text COMMENT '拥堵点位信息4'")
	private String linkGps4;
	@JsonDeserialize(using = DateTimeDeserializer.class)
	@Column(columnDefinition="datetime(0) COMMENT '业务更新时间'")
	private DateTime createTime;
}
